<?php
class foxsisActions extends sfActionsFoxsis
{
	public function executePaginaNaoEncontrada() {
		if ($this->getRequest()->isXmlHttpRequest()) {
			$this->getResponse()->setStatusCode(404);
			return sfView::HEADER_ONLY;
		}
		else {
			$this->setFlash(
            	'erro',
			    sfFoxsisLibPluginConfiguration::MSG_PAGINA_NAO_ENCONTRADA,
			    false
			);

			return $this->redirect('usuario','index');
		}
	}
}
?>